﻿using AutoMapper;
using Enterprise_Set.API.Application.Commands.Week1.Log_CR;
using Enterprise_Set.API.Application.Commands.Week1.BusinessEntities;
using Enterprise_Set.API.Application.Commands.Week1.Warehouse_CRUD;
using NPOI.SS.Formula.Functions;
using THE_WIND_RISES.Common.Domans.BasicInformation.Departments;
using THE_WIND_RISES.Common.Domans.BasicInformation.warehouses;
using Enterprise_Set.API.Application.Commands.Week1.Process_CRUD;
using System.Diagnostics;

namespace Enterprise_Set.API.Commons
{
    public class AutoMapperProfile : Profile
    {
        /// <summary>
        /// 映射
        /// </summary>
        public AutoMapperProfile()
        {
            //仓库新增
            CreateMap<AddWarehouseCommand, Warehouse>();
            //仓库修改
            CreateMap<UpWarehouseCommand, Warehouse>();
            //日志新增
            CreateMap<AddLogCommand, Log>();
            //部门
            CreateMap<DepartmentCreateCommand, Department>();
            //企业
            CreateMap<EnterpriseCreareCommand, Enterprise>();

        }
    }
}
